/*
	text:菜单名称
	icon:图标
	url:html地址,前面的page不能省略
	scripts：存放js文件的数组
*/
var menuList = {};
$(function(){

	var tempFramePath = xyd.sys.proPath + xyd.sys.proFramesPath;
	var path_jm = "page/pageBean/jm/";	 //荆门公积金项目页面目录;
	var pageBean_jm = xyd.pageBean.jm;
	menuList = {
		data: [{
			text: '首页',
			icon: 'fa fa-home text-warning',
			url: 'page/welcome',
			scripts:[]
		}

		,{
			text: '业务相关',
			icon: 'fa fa-bar-chart-o',
			url: '#',
			menus: [{
				text: '帮助管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'help/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'help/service.js'}
				]
			},{
				text: '通知管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'notify/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'notify/service.js'}
				]
			},{
				text: '新闻管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'news/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'news/service.js'}
				]
			},{
				text: '业务指南管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'guide/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'guide/service.js'}
				]
			},{
				text: '预约记录管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'booking/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'booking/service.js'},
					{position:"before",url: tempFramePath+'/My97DatePicker/WdatePicker.js'}
				]
			}]
		}

		,{
			text: '日志管理',
			icon: 'fa fa-bar-chart-o',
			url: '#',
			menus: [{
				text: '登陆日志管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'loglogin/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'loglogin/service.js'}
				]
			},{
				text: '操作日志管理',
				icon: 'fa fa-caret-right',
				url: path_jm + 'logoperate/list',
				scripts:[
					{position:"before",url: pageBean_jm + 'logoperate/service.js'}
				]
			}]
		}

		,{
			text: '安全中心',
			icon: 'fa fa-shield',
			url: 'page/pageBean/user_password/user_password',
			scripts:[],
			menus: [{
				text: '系统设置',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/user_info/user_config',
				scripts:[
					{position:"before",url:tempFramePath+'/public-js/xjd-httpDownload.js'},
					{position:"before",url:'pageBean/bootstrapTable/bootstrapTable-demo.js'}
				]
			},{
				text: '资料修改',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/user_info/user_info',
				scripts:[
					{position:"before",url:tempFramePath+'/public-js/xjd-httpDownload.js'},
					{position:"before",url:'pageBean/bootstrapTable/bootstrapTable-demo.js'}
				]
			},{
				text: '修改密码',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/user_password/user_password',
				scripts:[
					{position:"before",url:tempFramePath+'/public-js/xjd-httpDownload.js'},
					{position:"before",url:'pageBean/bootstrapTable/bootstrapTable-demo.js'}
				]
			}]
		}

		/*
		,{
			text: '框架示例',
			icon: 'fa fa-user',
			url: '#',
			menus: [{
				text: '数据表格',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/bootstrapTable/bootstrapTable-demo(new)',
				scripts:[
					{position:"before",url:tempFramePath+'/public-js/xjd-httpDownload.js'},
					{position:"before",url:'pageBean/bootstrapTable/bootstrapTable-demo.js'}
				]
			},{
				text: '输入框演示',
				icon: 'fa fa-caret-right',
				url: 'page/inputDemo',
				scripts:[]
			},{
				text: '文件下载',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/httpDownload/httpDownload',
				scripts:[
					{position:"before",url:tempFramePath+'/public-js/xjd-httpDownload.js'},
					{position:"before",url:'pageBean/httpDownload/httpDownload.js'}
				]
			},{
				text: '弹出层',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/dialog/dialog',
				scripts:[
					{position:"before",url:'pageBean/dialog/dialog.js'}
				]
			},{
				text: '文件批量上传',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/plupload/plupload-file-demo',
				scripts:[
					{position:"before",url:xyd.sys.plupload.js.min},
					{position:"before",url:xyd.sys.plupload.js.template},
					{position:"before",url:xyd.sys.plupload.js.jquery_ui},
					{position:"before",url:"pageBean/plupload/plupload-file-demo.js"}
				]
			},{
				text: '身份证上传',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/plupload_identity_card/plupload_identity_card',
				scripts:[
					{position:"before",url:xyd.sys.plupload.js.min},
					{position:"before",url:xyd.sys.plupload.js.template},
					{position:"before",url:'pageBean/plupload_identity_card/plupload_identity_card.js'}
				]
			},{
				text: '富文本编辑器',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/kindeditor-default/kindeditor-default',
				scripts:[
					{position:"before",url:xyd.sys.kindeditor.js.min},
					{position:"before",url:xyd.sys.kindeditor.js.lang}
				]
			},{
				text: '树形结构组件',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/tree_nav/tree-nav',
				scripts:[
					{position:"before",url:'pageBean/tree_nav/tree-nav.js'}
				]
			},{
				text: '树形结构组件-zTree',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/tree_nav/zTree-select',
				scripts:[
					{position:"before",url:xyd.sys.zTree.js.min},
					{position:"before",url:xyd.sys.zTree.js.check}
					
				]
			},{
				text: '影像浏览',
				icon: 'fa fa-caret-right',
				url: 'page/pageBean/imageView/imageView',
				scripts:[
					{position:"before",url:'pageBean/imageView/viewer-jquery.js'}
				]
			}]
		}
		*/
		]
	};

	$('#menus').sidebarMenu(menuList);
	
});
